﻿using ShareCode.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClientInfrastructure.Model;
public class ClientPagingModel : PagingDto, ICloneable
{
    public Action? DoSearch;

    public object Clone() => this.MemberwiseClone();

    public ClientPagingModel GetNewObj(PagingDto pm)
    {
        var obj = (ClientPagingModel)this.Clone();

        obj.TotalRows = pm.TotalRows;

        return obj;
    }

}